<%@ page import="seedmarket.Seed" %>



<div class="fieldcontain ${hasErrors(bean: seedInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="seed.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" required="" value="${seedInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: seedInstance, field: 'scientificName', 'error')} required">
	<label for="scientificName">
		<g:message code="seed.scientificName.label" default="Scientific Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="scientificName" required="" value="${seedInstance?.scientificName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: seedInstance, field: 'amount', 'error')} required">
	<label for="amount">
		<g:message code="seed.amount.label" default="Amount" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="amount" min="0" max="100" required="" value="${seedInstance.amount}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: seedInstance, field: 'hardiness', 'error')} required">
	<label for="hardiness">
		<g:message code="seed.hardiness.label" default="Hardiness" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="hardiness" min="1" max="13" required="" value="${seedInstance.hardiness}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: seedInstance, field: 'owner', 'error')} required">
	<label for="owner">
		<g:message code="seed.owner.label" default="Owner" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="owner" name="owner.id" from="${seedmarket.User.list()}" optionKey="id" required="" value="${seedInstance?.owner?.id}" class="many-to-one"/>
</div>

